import React,{Component} from "react";
import  "./Left.scss"
class Left extends Component{
    state={
        list:[
            {name:'列表1'},
            {name:'列表2'},
            {name:'列表3'},
            {name:'列表4'},
            {name:'列表5'},
            {name:'列表6'},
            {name:'列表7'},
        ]
    }
    render(){
        return(<>
            <div className="left">
              <ul>
                {
                    this.state.list.map((item,index)=><li key={index}>
                        <span>{item.name}</span>
                    </li>)
                }
              </ul>
            </div>
        </>)
    }
}

export default Left